package com.ruoyi.questionnaire.domain;

import java.util.Date;

/**
 * 问卷答卷实体类
 * 
 * 用于存储用户提交的问卷答卷信息，包括答题内容、提交时间等
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class QuestionnaireAnswer {
    /** 答卷ID，主键 */
    private Long id;
    
    /** 所属问卷ID，外键关联questionnaire表 */
    private Long questionnaireId;
    
    /** 答题用户ID，外键关联sys_user表 */
    private Long userId;
    
    /** 提交时间 */
    private Date submitTime;
    
    /** 用户名（用于查询，不存储在数据库中） */
    private String userName;

    // ==================== Getter/Setter 方法 ====================
    
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    
    public Long getQuestionnaireId() { return questionnaireId; }
    public void setQuestionnaireId(Long questionnaireId) { this.questionnaireId = questionnaireId; }
    
    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }
    
    public Date getSubmitTime() { return submitTime; }
    public void setSubmitTime(Date submitTime) { this.submitTime = submitTime; }
    
    public String getUserName() { return userName; }
    public void setUserName(String userName) { this.userName = userName; }
} 